package club.pchome.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/** 用户**/
@Table(name="c_user")
public class CUser{
	/****/
	@Id
	private Long id;

	/**用户名**/
	@Column
	private String userName;

	/**邮箱地址**/
	@Column
	private String email;

	/**用户密码**/
	@Column
	private String pwd;

	/**交易密码**/
	@Column
	private String jypwd;

	/**手机号码**/
	@Column
	private String cellPhone;

	/**创建时间**/
	@Column
	private Date createTime;

	/**是否禁用（0不禁用，1禁用）**/
	@Column
	private Integer isEnable;

	/**注册IP**/
	@Column
	private String regIp;

	/**最后登录Ip**/
	@Column
	private String lastLoginIp;

	/**最后登录时间**/
	@Column
	private Date lastLoginTime;

	/**本次签到时间**/
	@Column
	private Date signInTime;

	/**下次可签到时间**/
	@Column
	private Date nextSignInTime;

	/**推荐码**/
	@Column
	private String tjm;

	/*推荐人ID*/
	private String referee;

	//短信验证码
	private String regCode;
	private int rank;

	private TAccount ta;
	private String realname;
	
	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public TAccount getTa() {
		return ta;
	}

	public void setTa(TAccount ta) {
		this.ta = ta;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getJypwd() {
		return jypwd;
	}

	public void setJypwd(String jypwd) {
		this.jypwd = jypwd;
	}

	public String getCellPhone() {
		return cellPhone;
	}

	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public String getRegIp() {
		return regIp;
	}

	public void setRegIp(String regIp) {
		this.regIp = regIp;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Date getSignInTime() {
		return signInTime;
	}

	public void setSignInTime(Date signInTime) {
		this.signInTime = signInTime;
	}

	public Date getNextSignInTime() {
		return nextSignInTime;
	}

	public void setNextSignInTime(Date nextSignInTime) {
		this.nextSignInTime = nextSignInTime;
	}

	public String getTjm() {
		return tjm;
	}

	public void setTjm(String tjm) {
		this.tjm = tjm;
	}

	public String getReferee() {
		return referee;
	}

	public void setReferee(String referee) {
		this.referee = referee;
	}

	public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public String getRegCode() {
		return regCode;
	}

	public void setRegCode(String regCode) {
		this.regCode = regCode;
	}
}